<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻列表</title>
<style>
#list{width:300px;}
#list li{list-style: none;border:1px solid #BBB;padding:10px 5px;margin-top:5px;}
#list{font-size:13px;}
#list li h3{border-bottom:2px dotted #ccc;}
#list li p{color:blue;}
</style>
</head>
<body>
    <div style="padding: 10px;border:2px solid #BBB;">
        <img src="<?php echo base_url('show/images'); ?>" />
    </div>
    <ul id="list">
        <?php foreach($record as $n) : ?>
            <li>
                <h3><?php echo $n->title; ?></h3>
                <p><?php echo '<em>'.date('Y-m-d H:i:s' , $n->dateline).'</em>'; ?></p>
                <div><?php echo $n->content; ?></div>
            </li>
        <?php endforeach; ?></ul>
    <?php echo validation_errors(); ?>
    <?php echo url_mine(form_open('show/select')); ?>
    <h5>标题</h5>
    <input type="text" name="title" value="<?php echo set_value('title'); ?>" size="50" />
    <h5>内容</h5>
    <textarea name="content" cols="41" rows="5"><?php echo htmlspecialchars_decode(set_value('content')) ?></textarea>
    <div><input type="submit" value="发布" /></div>
    </form>
</body>
</html>
